<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
		<script src="index.js?a=1"></script>
</head>
<body>

</body>
<script>
	// then接收的成功与失败回调函数的默认值
	const p = new Promise((resolve, reject) => {
		resolve(1);
		// reject(2);
	})
	const p1 = p.then();
	// 相当于
	// const p1 = p.then(value => value, reason => {
	// 	throw reason;
	// })
	console.log(p1);
</script>
</html>